package com.sun.enhanceelasticsearch.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "account")
public class Account {
    @Field(type = FieldType.Integer)
    private Integer accountNumber;
    @Field(type = FieldType.Integer)
    private Integer balance;
    @Field(type = FieldType.Text)
    private String firstName;
    @Field(type = FieldType.Text)
    private String lastName;
    @Field(type = FieldType.Integer)
    private Integer age;
    @Field(type = FieldType.Text)
    private String gender;
    @Field(type = FieldType.Text)
    private String address;
    @Field(type = FieldType.Text)
    private String employer;
    @Field(type = FieldType.Text)
    private String email;
    @Field(type = FieldType.Text)
    private String city;
    @Field(type = FieldType.Text)
    private String state;


}
